package com.example.travel.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import nonapi.io.github.classgraph.json.Id;

import java.util.Date;

/**
 * @Author : LinQingLiang
 * @file : Validation.java
 * @Since : 2023/2/27 9:18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("validation")
public class Validation {

    @TableId(type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("邮箱")
    private String email;
    @ApiModelProperty("验证码")
    private String code;
    @ApiModelProperty("类型")
    private Integer type;
    @ApiModelProperty("验证码过期时间")
    private Date time;
}
